package Demo2;

class MyThread extends Thread{
    @Override
    public void run() {
        System.out.println("hello thread");
    }
}


public class Main1 {
    public static void main(String[] args) {
     Thread t=new MyThread();
     t.start();
        System.out.println("hello main");
    }
}
